package com.yuan.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuan.dto.DishDTO;
import com.yuan.dto.DishPageQueryDTO;
import com.yuan.entity.Dish;
import com.yuan.result.PageResult;
import com.yuan.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDTO dishDTO);

    PageResult pageSelf(DishPageQueryDTO dto);

    void deleteIds(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    List<Dish> listSelf(Long categoryId);

    List<DishVO> listWithFlavor(Dish dish);
}
